package com.atguigu.gulimall.order.service;

import com.atguigu.common.to.mq.SeckillOrderTO;
import com.atguigu.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 订单
 *
 * @author baiwt
 * @email 2622632048@qq.com
 * @date 2022-03-05 23:11:27
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVO confirmOrder();

    FareInfoTO getFare(Long addrId);

    SubmitOrderVo submitOrder(OrderSubmitVO vo);

    OrderEntity getOrderStatus(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    AlipayVO OrderPay(String orderSn);

    PageUtils getCurrentUserOrderList(Map<String, Object> params);

    String handlePayResult(AlipayNotifyVO vo);

    boolean createSeckillOrder(SeckillOrderTO seckillOrderTO);
}

